//
//  YeeMineInfoHeaderTableViewCell.m
//  YeeShopProject
//
//  Created by CoderYee on 2017/2/27.
//  Copyright © 2017年 CoderYee. All rights reserved.
//

#import "YeeMineInfoHeaderTableViewCell.h"

@implementation YeeMineInfoHeaderTableViewCell

-(void)addOwnView
{
    _headerView=[[UIImageView alloc] init];
    _headerView.layer.masksToBounds=YES;
    _headerView.layer.cornerRadius=25.0f;
    [_headerView setImage:[UIImage imageNamed:@"ihave_savy_banner_bg"]];
    _headerView.contentMode=UIViewContentModeScaleAspectFill;
    _headerView.clipsToBounds=YES;
    [self.contentView addSubview:_headerView];
    
    [_headerView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView);
        make.height.width.mas_equalTo(50.f);
        make.left.equalTo(self.contentView).with.offset(15);
    }];
    
}

@end
